<?php if (!defined('THINK_PATH')) exit(); /*a:4:{s:139:"E:\xampp-windows-x64-5.6.40-1-VC11-installerroot\rootdir\htdocs\protects\www.opendemo.devp\public/../application/man\view\config\video.html";i:1545464830;s:123:"E:\xampp-windows-x64-5.6.40-1-VC11-installerroot\rootdir\htdocs\protects\www.opendemo.devp\application\man\view\layout.html";i:1545464819;s:130:"E:\xampp-windows-x64-5.6.40-1-VC11-installerroot\rootdir\htdocs\protects\www.opendemo.devp\application\man\view\public\header.html";i:1545464836;s:130:"E:\xampp-windows-x64-5.6.40-1-VC11-installerroot\rootdir\htdocs\protects\www.opendemo.devp\application\man\view\public\footer.html";i:1545464836;}*/ ?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<title>后台管理</title>
<script src="http://cdn.bootcss.com/jquery/2.1.0-beta3/jquery.min.js"></script>
<link rel="stylesheet" href="/static/layui/css/layui.css">
<link rel="stylesheet" href="/static/css/admin.css">
<script src="/static/layui/layui.js"></script>
</head>
<body>
<div class="layui-layout layui-layout-admin">
   <div class="layui-header header header-admin">
  	<div class="layui-main">
	 </div>
  </div>

  <div id="sidebar-side" class="layui-side layui-bg-black">
        <div id="admin-navbar-side" class="layui-side-scroll" lay-filter="side">
          <ul class="layui-nav layui-nav-tree site-demo-nav">
          <li class="layui-nav-item layui-nav-itemed">
          <a class="javascript:;" href="javascript:;">网站设置</a>
          <dl class="layui-nav-child">
            <dd>
              <a href="<?php echo url('man/config/index'); ?>">全局设置</a>
            </dd>
            <dd>
              <a href="<?php echo url('man/config/video'); ?>">导流设置</a>
            </dd>
             <dd>
              <a href="<?php echo url('man/lead/txt'); ?>">文字链导量列表</a>
            </dd>
            <dd>
              <a href="<?php echo url('man/config/listFile'); ?>">公众号校验文件列表</a>
            </dd>
          </dl>
        </li>
        <li class="layui-nav-item layui-nav-itemed">
          <a class="javascript:;" href="javascript:;">第三方平台</a>
          <dl class="layui-nav-child">
            <dd>
              <a href="<?php echo url('man/auth/index'); ?>">授权列表</a>
            </dd>
            <dd>
              <a href="<?php echo url('man/auth/add'); ?>">添加授权</a>
            </dd>
            <dd>
              <a href="<?php echo url('man/auth/wechat'); ?>">授权公众号列表</a>
            </dd>
          </dl>
        </li>
         
      
      <!--
 <li class="layui-nav-item layui-nav-itemed">
          <a class="javascript:;" href="javascript:;">内容管理</a>
          <dl class="layui-nav-child">
            <dd>
              <a href="<?php echo url('man/zb/dlist'); ?>">内容列表</a>
            </dd>
          </dl>
        </li>
        <li class="layui-nav-item layui-nav-itemed">
          <a class="javascript:;" href="javascript:;">【爱测测】广告管理</a>
          <dl class="layui-nav-child">
            <dd>
              <a href="<?php echo url('man/ad/pic'); ?>">图片广告</a>
            </dd>
            <dd>
              <a href="<?php echo url('man/ad/txt'); ?>">文字广告</a>
            </dd>
          </dl>
        </li>
 <li class="layui-nav-item layui-nav-itemed">
          <a class="javascript:;" href="javascript:;">【装逼】内容管理</a>
          <dl class="layui-nav-child">
            <dd>
              <a href="<?php echo url('man/zb/dlist'); ?>">内容列表</a>
            </dd>
          </dl>
        </li>
   <li class="layui-nav-item layui-nav-itemed">
          <a class="javascript:;" href="javascript:;">内容管理</a>
          <dl class="layui-nav-child">
            <dd>
              <a href="<?php echo url('man/zb/dlist'); ?>">内容列表</a>
            </dd>
          </dl>
        </li>     
        <li class="layui-nav-item layui-nav-itemed">
          <a class="javascript:;" href="javascript:;">【爱测测】内容管理</a>
          <dl class="layui-nav-child">
            <dd>
              <a href="<?php echo url('man/article/category'); ?>">分类管理</a>
            </dd>
            <dd>
              <a href="<?php echo url('man/article/index'); ?>">题目管理</a>
            </dd>
          </dl>
        </li>
        <li class="layui-nav-item layui-nav-itemed">
          <a class="javascript:;" href="javascript:;">【爱测测】域名管理</a>
          <dl class="layui-nav-child">
            <dd>
              <a href="<?php echo url('man/domain/dlist','did=1'); ?>">到达列表</a>
            </dd>
            <dd>
              <a href="<?php echo url('man/domain/add','did=1'); ?>">添加到达</a>
            </dd>
            <dd>
              <a href="<?php echo url('man/domain/dlist','did=2'); ?>">跳转列表</a>
            </dd>
            <dd>
              <a href="<?php echo url('man/domain/add','did=2'); ?>">添加跳转</a>
            </dd>
            <dd>
              <a href="<?php echo url('man/domain/dlist','did=3'); ?>">对接列表</a>
            </dd>
            <dd>
              <a href="<?php echo url('man/domain/add','did=3'); ?>">添加对接</a>
            </dd>
          </dl>
        </li>
       
        <li class="layui-nav-item layui-nav-itemed">
          <a class="javascript:;" href="javascript:;">【装逼】域名管理</a>
          <dl class="layui-nav-child">
             <dd>
              <a href="<?php echo url('man/jump/dlist'); ?>">跳转列表</a>
            </dd>
            <dd>
              <a href="<?php echo url('man/jump/add'); ?>">添加跳转</a>
            </dd>
            <dd>
              <a href="<?php echo url('man/arrive/dlist'); ?>">到达列表</a>
            </dd>
            <dd>
              <a href="<?php echo url('man/arrive/add'); ?>">添加到达</a>
            </dd>
          </dl>
        </li>-->
       <!--  <li class="layui-nav-item layui-nav-itemed">
          <a class="javascript:;" href="javascript:;">【第三方】域名管理</a>
          <dl class="layui-nav-child">
            <dd>
              <a href="<?php echo url('man/party/dlist'); ?>">到达列表</a>
            </dd>
            <dd>
              <a href="<?php echo url('man/party/add'); ?>">添加到达</a>
            </dd>
            <dd>
              <a href="<?php echo url('man/jumps/dlist'); ?>">跳转列表</a>
            </dd>
            <dd>
              <a href="<?php echo url('man/jumps/add'); ?>">添加跳转</a>
            </dd>
          </dl>
        </li> -->
      <!-- <li class="layui-nav-item layui-nav-itemed">
          <a class="javascript:;" href="javascript:;">【视频】域名管理</a>
          <dl class="layui-nav-child">
            <dd>
              <a href="<?php echo url('man/reach/dlist'); ?>">到达列表</a>
            </dd>
            <dd>
              <a href="<?php echo url('man/reach/add'); ?>">添加到达</a>
            </dd>
            <dd>
              <a href="<?php echo url('man/gotos/dlist'); ?>">备份列表</a>
            </dd>
            <dd>
              <a href="<?php echo url('man/gotos/add'); ?>">添加备份</a>
            </dd> -->
           <!--  <dd>
              <a href="<?php echo url('man/vendor/dlist'); ?>">对接列表</a>
            </dd>
            <dd>
              <a href="<?php echo url('man/vendor/add'); ?>">添加对接</a>
            </dd>
             <dd>
              <a href="<?php echo url('man/share/dlist'); ?>">分享链接</a>
            </dd>
            <dd>
              <a href="<?php echo url('man/share/add'); ?>">添加分享</a>
            </dd> -->
             <!--  </dl>
        </li>  -->
       <li class="layui-nav-item layui-nav-itemed">
          <a class="javascript:;" href="javascript:;">广告域名管理</a>
          <dl class="layui-nav-child">
             <dd>
              <a href="<?php echo url('man/domain/dlist','did=6'); ?>">广告域名列表</a>
            </dd>
            <dd>
              <a href="<?php echo url('man/domain/add','did=6'); ?>">添加广告域名</a>
            </dd>
          </dl>
        </li>
        
        <li class="layui-nav-item layui-nav-itemed">
          <a class="javascript:;" href="javascript:;">公众号对接-域名管理</a>
          <dl class="layui-nav-child">
           <dd>
              <a href="<?php echo url('man/jump/dlist'); ?>">视频跳转列表</a>
            </dd>
            <dd>
              <a href="<?php echo url('man/jump/add'); ?>">添加跳转</a>
            </dd>
             <dd>
              <a href="<?php echo url('man/arrive/dlist'); ?>">视频到达列表</a>
            </dd>
            <dd>
              <a href="<?php echo url('man/arrive/add'); ?>">添加到达</a>
            </dd>
            <dd>
            <a href="<?php echo url('man/vendor/dlist'); ?>">对接列表</a>
          </dd>
          <dd>
            <a href="<?php echo url('man/vendor/add'); ?>">添加对接</a>
          </dd>
          </dl>
        </li>
        
        </div>
  </div>

  <script>
	layui.use('element', function(){
	  var element = layui.element(); //导航的hover效果、二级菜单等功能，需要依赖element模块
	  
	  //监听导航点击
	  element.on('nav(demo)', function(elem){
	    //console.log(elem)
	    layer.msg(elem.text());
	  });
	});
</script>
 <div class="layui-body">
<div class="aright">
<button id="danger" class="layui-btn layui-btn-lg">停止自动导量</button>
<div class="layui-tab" lay-filter="demo" style="margin: 20px 30px 20px 20px;">
  <ul class="layui-tab-title">
    <li class="layui-this">基本设置</li>
  </ul>
  <div class="layui-tab-content">
    <div class="layui-tab-item layui-show">
<!-- <fieldset class="layui-elem-field">
  <legend>注释-说明</legend>
  <div class="layui-field-box">
    1.手动模式
    <hr class="layui-bg-blue">
    2.持续时间+浏览量
    <hr class="layui-bg-blue">
    3.开始时间+浏览量 设置【开始时间】【导流域名数量】【导流最小值】【导流最大值】是个参数，最小值是被导域名的结束条件，最大值和时间是开始条件
    <hr class="layui-bg-blue">
    4.持续时间+浏览量（导流多个域名）设置【持续时间】【导流域名数量】【导流最小值】三个参数，达到最小值开始导流
  </div>
</fieldset> -->
<form class="layui-form bform" method="post" action="<?php echo url('man/config/video'); ?>" enctype="multipart/form-data">
  <!-- <div class="layui-form-item">
    <label class="layui-form-label">是否开启导流：</label>
      <div class="layui-input-inline">
        <select name="dump_whether">
        <?php if($config['dump_whether'] == 0): ?>
          <option selected value="0">关闭</option>
          <?php else: ?>
          <option value="0">关闭</option>
          <?php endif; if($config['dump_whether'] == 1): ?>
          <option selected value="1">手动</option>
          <?php else: ?>
          <option value="1">手动</option>
          <?php endif; if($config['dump_whether'] == 2): ?>
          <option selected value="2">【持续时间+浏览量】自动</option>
          <?php else: ?>
          <option value="2">【持续时间+浏览量】自动</option>
          <?php endif; if($config['dump_whether'] == 3): ?>
          <option selected value="3">【开始时间+浏览量】自动</option>
          <?php else: ?>
          <option value="3">【开始时间+浏览量】自动</option>
          <?php endif; if($config['dump_whether'] == 4): ?>
          <option selected value="4">【持续时间+浏览量】自动-多个域名</option>
          <?php else: ?>
          <option value="4">【持续时间+浏览量】自动-多个域名</option>
          <?php endif; ?>
       </select>
      </div>
      
  </div> -->
  <!-- <div class="layui-form-item">
    <label class="layui-form-label">是否开启随机二级目录：</label>
      <div class="layui-input-inline">
        <select name="dump_change_dir">
        <?php if($config['dump_change_dir'] == 0): ?>
          <option selected value="0">关闭</option>
          <?php else: ?>
          <option value="0">关闭</option>
          <?php endif; if($config['dump_change_dir'] == 1): ?>
          <option selected value="1">开启</option>
          <?php else: ?>
          <option value="1">开启</option>
          <?php endif; ?>
       </select>
      </div>
      
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">【手动】开始时间：</label>
    <div class="layui-input-block">
      <input type="text" name="dump_start_time" value="<?php echo $config['dump_start_time']; ?>" placeholder="请输入内容" autocomplete="off" class="layui-input">
    </div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">【手动】结束时间：</label>
    <div class="layui-input-block">
     <input type="text" name="dump_end_time" value="<?php echo $config['dump_end_time']; ?>" placeholder="请输入内容" autocomplete="off" class="layui-input">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">【浏览量+时间】持续时间：</label>
    <div class="layui-input-block">
     <input type="text" name="dump_dura_time" value="<?php echo $config['dump_dura_time']; ?>" placeholder="请输入内容" autocomplete="off" class="layui-input">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">【浏览量+时间】导流域名数量：</label>
    <div class="layui-input-block">
     <input type="text" name="dump_cou" value="<?php echo $config['dump_cou']; ?>" placeholder="请输入内容" autocomplete="off" class="layui-input">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">自动导流最小值：</label>
    <div class="layui-input-block">
      <input type="text" name="dump_min_num" value="<?php echo $config['dump_min_num']; ?>" placeholder="请输入内容" autocomplete="off" class="layui-input">
    </div>
  </div>
<div class="layui-form-item">
    <label class="layui-form-label">自动导流最大值：</label>
    <div class="layui-input-block">
      <input type="text" name="dump_max_num" value="<?php echo $config['dump_max_num']; ?>" placeholder="请输入内容" autocomplete="off" class="layui-input">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">【手动】导流的域名：</label>
    <div class="layui-input-block">
      <input type="text" name="dump_jumps" value="<?php echo $config['dump_jumps']; ?>" placeholder="请输入内容" autocomplete="off" class="layui-input">
    </div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">【手动】导流到达域名：</label>
    <div class="layui-input-block">
      <input type="text" name="dump_arrives" value="<?php echo $config['dump_arrives']; ?>" placeholder="请输入内容" autocomplete="off" class="layui-input">
    </div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">拦截域名导流：</label>
    <div class="layui-input-block">
      <input type="text" name="dump_red" value="<?php echo $config['dump_red']; ?>" placeholder="请输入内容" autocomplete="off" class="layui-input">
    </div>
  </div>
 -->
  <div class="layui-form-item">
    <label class="layui-form-label">【视频】标题：</label>
    <div class="layui-input-block">
      <input type="text" name="vtitle" value="<?php echo $config['vtitle']; ?>" placeholder="请输入内容" autocomplete="off" class="layui-input">
    </div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">【视频】VID：</label>
    <div class="layui-input-block">
      <input type="text" name="vid" value="<?php echo $config['vid']; ?>" placeholder="请输入内容" autocomplete="off" class="layui-input">
    </div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">【视频】分享时间：</label>
    <div class="layui-input-block">
      <input type="text" name="delay_time" value="<?php echo $config['delay_time']; ?>" placeholder="请输入内容" autocomplete="off" class="layui-input">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">【视频】公众号对接超时时间：</label>
    <div class="layui-input-block">
      <input type="text" name="dump_vendor_timeout" value="<?php echo $config['dump_vendor_timeout']; ?>" placeholder="请输入内容" autocomplete="off" class="layui-input">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">【视频】公众号上一次对接时间：</label>
    <div class="layui-input-block">
      <input type="text" name="dump_vendor_time" value="<?php echo $config['dump_vendor_time']; ?>" placeholder="请输入内容" autocomplete="off" class="layui-input">
    </div>
  </div>
  <div class="layui-form-item">
    <div class="layui-input-block">
	  <button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
      <button class="layui-btn layui-btn-primary" onclick="history.go(-1)">返回</button>
    </div>
  </div>

</form>
	
	</div>
     
	<script>
  layui.use('form',function(){
     var form = layui.form();
  })

$(function(){
  $("#danger").click(function(){
     layer.confirm('真的要停止自动导量吗？', function(index){
       $.get("<?php echo url('man/config/stopAutoJump'); ?>",{},function(data){
          layer.msg(data);
       })
     });
  });
});
  
  </script>
	
	</div>
  </div>
</div>

<div class="layui-footer">
    <!-- 底部固定区域 -->
  </div>
</div>

</body>
</html>
